const crypto = require('crypto');

function hashPwd(password) {
    const md5 = crypto.createHash('md5');
    md5.update(password);
    return md5.digest('hex');

}

module.exports = hashPwd

//console.log(hashPwd('123456'));
// e10adc3949ba59abbe56e057f20f883e